//package com.gonsin.gview.logic.services.data;
//
//import com.gonsin.gview.annotations.GContext;
//import com.gonsin.gview.annotations.interfaces.ITreeDataPicker;
//import com.gonsin.gview.annotations.model.KeyValue;
//import com.gonsin.gview.logic.model.DataRequest;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.util.CollectionUtils;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.*;
//
///**
// * 表格数据处理器
// */
//@Slf4j
//public class GTreeDataPickerManager extends GDataManager{
//
//    private GContext context;
//
//    private String dataId;
//
//    private ITreeDataPicker picker;
//
//    public GTreeDataPickerManager(GContext context, String dataId, ITreeDataPicker picker) {
//        this.context = context;
//        this.dataId = dataId;
//        this.picker = picker;
//    }
//
//    @Override
//    public Object generalData(HttpServletRequest request, HttpServletResponse response, DataRequest dataRequest) {
//        if(dataRequest.getProps() == null){
//            dataRequest.setProps(new HashMap<>());
//        }
//        return picker.getTreeData(context, dataId, request, dataRequest.getProps());
//    }
//}
